package myjava;

import org.junit.Test;

/**
 * @ClassName T1
 * @Description 全局变量和局部变量重名
 * @Author Fanxc
 * @DATE 2021/4/29 10:13
 * @Version 1.0
 */
public class T1 {
    int num=1;

    @Test
    public void test(){
        int num=0;
        System.out.println(num);
        System.out.println(this.num);
    }
}
